package com.buba.system.service.impl;

import com.buba.system.dao.RoleMapper;
import com.buba.system.pojo.SystemMenu;
import com.buba.system.pojo.SystemUserRole;
import com.buba.system.pojo.SystemUsers;
import com.buba.system.service.RoleService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
@DubboService
public class RoleServiceImpl  implements RoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public SystemUserRole selSystem(SystemUsers systemUsers) {
        return roleMapper.selSystem(systemUsers);
    }

    @Override
    public Set<String> selSystemMenu(String role_name) {
        return roleMapper.selSystemMenu(role_name);
    }
}
